function [  ] = test_python_lsim()

blep1 = get_blep(get_blip_python('a500', 'led filter on', true, 'org'));
blep2 = get_blep(get_blip_python('a500', 'led filter off', true, 'org'));
blep4 = get_blep(get_blip_python('a1200', 'led filter on', true, 'org'));
blep5 = get_blep(get_blip_python('a1200', 'led filter off', true, 'org'));
blep7 = get_blep(get_blip_python('a1200', 'unfiltered', true, 'org'));

blep1a = get_blep(get_blip_python('a500 winuae', 'led filter on', true, 'lsim'));
blep2a = get_blep(get_blip_python('a500 winuae', 'led filter off', true, 'lsim'));
blep4a = get_blep(get_blip_python('a1200 winuae', 'led filter on', true, 'lsim'));
blep5a = get_blep(get_blip_python('a1200 winuae', 'led filter off', true, 'lsim'));
blep7a = get_blep(get_blip_python('a1200 winuae', 'unfiltered', true, 'lsim'));

wblep1 = get_blep(get_blip_winuae('a500', 'led filter on'));
wblep2 = get_blep(get_blip_winuae('a500', 'led filter off'));
wblep4 = get_blep(get_blip_winuae('a1200', 'led filter on'));
wblep5 = get_blep(get_blip_winuae('a1200', 'led filter off'));
wblep7 = get_blep(get_blip_winuae('a1200', 'unfiltered'));

display 'errors beetwen original python and lsim python - should be little';
error_calc(blep1, blep1a);
error_calc(blep2, blep2a);
error_calc(blep4, blep4a);
error_calc(blep5, blep5a);
error_calc(blep7, blep7a);

display 'errors beetwen winuae and original python and lsim python, lsim should win always';
error_calc(blep1, wblep1);
error_calc(blep1a, wblep1);
error_calc(blep2, wblep2);
error_calc(blep2a, wblep2);
error_calc(blep4, wblep4);
error_calc(blep4a, wblep4);
error_calc(blep5, wblep5);
error_calc(blep5a, wblep5);
error_calc(blep7, wblep7);
error_calc(blep7a, wblep7);

figure(1);
hold on;
plot(blep1, 'r');
plot(blep1a, 'g');
plot(wblep1, 'c');
title('a500 led filter on');
legend('python-org', 'python-lsim', 'winuae');

figure(2);
hold on;
plot(blep2, 'r');
plot(blep2a, 'g');
plot(wblep2, 'c');
title('a500 led filter off');
legend('python-org', 'python-lsim', 'winuae');

figure(3);
hold on;
plot(blep4, 'r');
plot(blep4a, 'g');
plot(wblep4, 'c');
title('a1200 led filter on');
legend('python-org', 'python-lsim', 'winuae');

figure(4);
hold on;
plot(blep5, 'r');
plot(blep5a, 'g');
plot(wblep5, 'c');
title('a500 led filter off');
legend('python-org', 'python-lsim', 'winuae');

figure(5);
hold on;
plot(blep7, 'r');
plot(blep7a, 'g');
plot(wblep7, 'c');
title('filter off');
legend('python-org', 'python-lsim', 'winuae');

end

